<?php
session_start();
$sessionid = session_id();
set_time_limit(0);
ignore_user_abort(true);
$servername = "localhost";
$username = "root";
$password = "wgz52157";
$dbname = "myFirstDB";
// 创建连接
$conn = new mysqli($servername, $username, $password, $dbname);
mysqli_query($conn, "DELETE FROM MyUsers  WHERE id='$sessionid'");
mysqli_close($conn);
?>